﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using NDjango.Compatibility;
using NDjango.Interfaces;
using System.Globalization;

namespace MetaCollection.ContentService.Template
{
	[CLSCompliant(false)]
	public class IncludeScriptTag : SimpleTag
	{
		public IncludeScriptTag() : base(true, "includescript", 1) { }

		public override string ProcessTag(IContext context, string content, object[] parms)
		{
			return String.Format(CultureInfo.InvariantCulture, "<script type='text/javascript' src='{0}'></script>\n", context.tryfind((string)parms[0]).Value);
		}
	}


}
